package initialization;

import java.util.Arrays;
import java.util.Random;

public class ArrayClassObj {
	public static void main(String [] args){
		Random rand = new Random();
		Integer [] a = new Integer[rand.nextInt(20)];
		
		System.out.println("length of a = " +a.length);
		System.out.println(Arrays.toString(a));
		for(int i=0;i<a.length;i++)
			a[i] = rand.nextInt(500);
			//Autoboxing
		
		System.out.println(Arrays.toString(a));
	}
}
